import yagmail


def mail_to(users=None, num=None):
    yag = yagmail.SMTP(
        user="newrain_wang@163.com",
        password="",
        host="smtp.163.com",
        port=465,
        smtp_ssl=True,
    )
    yag.send(to=users, subject="验证码", contents=f"你的验证码是{num}")
